﻿<Window x:Class="Scarecrow_Network_Manager.ProfileWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:properties="clr-namespace:Scarecrow_Network_Manager.Properties" 
        Title="{x:Static properties:Resources.ProfileWindow}"
        Height="497" Width="670" Background="Black" Loaded="Window_Loaded" WindowStartupLocation="CenterScreen">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="90" />
            <ColumnDefinition Width="20" />
            <ColumnDefinition Width="90" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="304*" />
            <RowDefinition Height="33*" />
        </Grid.RowDefinitions>
        <TabControl Name="tbControl" Background="Black" BorderBrush="SteelBlue" BorderThickness="2" TabStripPlacement="Left" Grid.ColumnSpan="4">
            <TabControl.ContentTemplate>
                <DataTemplate>
                    <Border Background="Black">
                        <ContentPresenter Content="{Binding}"/>
                    </Border>
                </DataTemplate>
            </TabControl.ContentTemplate>
            <TabItem Style="{StaticResource AnimatedTabItemHeader}" Name="tbHome" Header="{x:Static properties:Resources.Profile}" Tag="/Images/System/list.png">
                <Grid Name="grid1" Grid.ColumnSpan="4">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="172.5*" />
                        <ColumnDefinition Width="250" />
                        <ColumnDefinition Width="142.5*" />
                        <ColumnDefinition Width="32" />
                        <ColumnDefinition Width="32" />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="25" />
                        <RowDefinition Height="25" />
                        <RowDefinition Height="320*" />
                        <RowDefinition Height="32" />
                    </Grid.RowDefinitions>
                    <Label Content="{x:Static properties:Resources.ProfileName}" Name="lblProfile" Foreground="SteelBlue" />
                    <TextBox Name="txtProfile" Grid.Column="1" />
                    <Label Content="{x:Static properties:Resources.Images}" Foreground="SteelBlue" Name="lblImage" Grid.Row="1" Grid.RowSpan="3" />
                    <ListView Grid.ColumnSpan="5" Grid.Row="2" Name="lstImages" Background="Black" Margin="0,0,0,7">
                        <ListView.ItemsPanel>
                            <ItemsPanelTemplate>
                                <WrapPanel IsItemsHost="True"/>
                            </ItemsPanelTemplate>
                        </ListView.ItemsPanel>
                    </ListView>
                    <Button Content="" Tag="Images\System\add2.png" Style="{StaticResource TaskButton}" Grid.Column="4" Grid.Row="3" Name="cmdAddImage" Click="cmdAddImage_Click" />
                    <Button Content="" Tag="Images\System\delete2.png" Style="{StaticResource TaskButton}" Grid.Column="3" Grid.Row="3" Name="cmdRemoveImage" Click="cmdRemoveImage_Click" />
                </Grid>
            </TabItem>
            <TabItem Style="{StaticResource AnimatedTabItemHeader}" Name="tbNetworkAdapter" Header="{x:Static properties:Resources.NetworkAdapters}" Tag="/Images/System/networkadapter.png">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="25" />
                        <RowDefinition Height="357*" />
                        <RowDefinition Height="30" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition MinWidth="128" Width="128*" />
                        <ColumnDefinition Width="470" />
                    </Grid.ColumnDefinitions>
                    <TextBlock Grid.Row="0" Grid.Column="0" HorizontalAlignment="Center" Text="{x:Static properties:Resources.NetworkAdapters}" Foreground="SteelBlue" />
                    <ListBox Grid.Row="1" Name="lstAdapters" SelectionChanged="lstAdapters_SelectionChanged" />
                    <Button Name="cmdRefreshAdapters" Content="Aggiorna" Grid.Row="2" Margin="2" Click="cmdRefreshAdapters_Click" />
                    <Grid Grid.Column="1" Grid.Row="1" Grid.RowSpan="2">
                        <Grid Margin="20,77,0,0" VerticalAlignment="Top" Width="340" Height="156" HorizontalAlignment="Left" Name="IPGrid">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="180*" />
                                <ColumnDefinition Width="160*" />
                            </Grid.ColumnDefinitions>
                            <GroupBox DataContext="{Binding}" Header="                                                       " Height="118" HorizontalAlignment="Left" IsEnabled="False" Margin="10,30,0,0" Name="grpbIP" VerticalAlignment="Top" Width="315" Grid.ColumnSpan="2">
                                <Grid>
                                    <TextBox Height="23" HorizontalAlignment="Right" Margin="0,6,6,0" Name="txtIPAddr" TextAlignment="Center" VerticalAlignment="Top" Width="151" TextChanged="txtIPAddr_TextChanged" />
                                    <Label Foreground="SteelBlue" Content="{x:Static properties:Resources.IPAddress}" Grid.ColumnSpan="2" Height="28" HorizontalAlignment="Left" Margin="6,4,0,0" Name="lblIP" VerticalAlignment="Top" />
                                    <TextBox Height="23" HorizontalAlignment="Right" Margin="0,34,6,0" Name="txtSubnet" TextAlignment="Center" VerticalAlignment="Top" Width="151" TextChanged="txtSubnet_TextChanged" />
                                    <Label Foreground="SteelBlue" Content="{x:Static properties:Resources.SubnetMask}" Height="28" HorizontalAlignment="Left" Margin="6,32,0,0" Name="lblSubnet" VerticalAlignment="Top" Width="127" />
                                    <TextBox Height="23" HorizontalAlignment="Right" Margin="0,63,6,0" Name="txtGateway" TextAlignment="Center" VerticalAlignment="Top" Width="151" TextChanged="txtGateway_TextChanged" />
                                    <Label Content="{x:Static properties:Resources.Gateway}" Foreground="SteelBlue" Grid.ColumnSpan="2" Height="28" HorizontalAlignment="Left" Margin="7,61,0,0" Name="lblGateway" VerticalAlignment="Top" />
                                </Grid>
                            </GroupBox>
                            <RadioButton Checked="rbDHCPIP_Checked" Content="{x:Static properties:Resources.DHCPIP}" Foreground="SteelBlue" Height="16" HorizontalAlignment="Left" IsChecked="True" Margin="23,10,0,0" Name="rbDHCPIP" VerticalAlignment="Top" Grid.ColumnSpan="2" />
                            <RadioButton Checked="rbStaticIP_Checked" Content="{x:Static properties:Resources.StaticIP}" Foreground="SteelBlue" Height="16" HorizontalAlignment="Left" Margin="23,30,0,0" Name="rbStaticIP" VerticalAlignment="Top" Grid.ColumnSpan="2" />
                        </Grid>
                        <Grid Height="127" Margin="20,239,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="341" Name="DNSGrid">
                            <GroupBox DataContext="{Binding}" Header="                                                                   " Height="87" HorizontalAlignment="Left" IsEnabled="False" Margin="10,30,0,0" Name="grpbDNS" VerticalAlignment="Top" Width="315">
                                <Grid>
                                    <TextBox Height="23" HorizontalAlignment="Right" Margin="0,6,6,0" Name="txtDNS1" TextAlignment="Center" VerticalAlignment="Top" Width="150" TextChanged="txtDNS1_TextChanged" />
                                    <Label Content="{x:Static properties:Resources.DNS1}" Foreground="SteelBlue" Height="28" HorizontalAlignment="Left" Margin="6,4,0,0" Name="lblDNS1" VerticalAlignment="Top" />
                                    <TextBox Height="23" HorizontalAlignment="Right" Margin="0,34,6,0" Name="txtDNS2" TextAlignment="Center" VerticalAlignment="Top" Width="150" TextChanged="txtDNS2_TextChanged" />
                                    <Label Content="{x:Static properties:Resources.DNS2}" Foreground="SteelBlue" Height="28" HorizontalAlignment="Left" Margin="6,32,0,0" Name="lblDNS2" VerticalAlignment="Top" Width="135" />
                                </Grid>
                            </GroupBox>
                            <RadioButton Checked="rbDHCPDNS_Checked" Content="{x:Static properties:Resources.DHCPDNS}" Foreground="SteelBlue" Height="16" HorizontalAlignment="Left" IsChecked="True" Margin="22,10,0,0" Name="rbDHCPDNS" VerticalAlignment="Top" />
                            <RadioButton Checked="rbStaticDNS_Checked" Content="{x:Static properties:Resources.StaticDNS}" Foreground="SteelBlue" Height="16" HorizontalAlignment="Left" Margin="22,30,0,0" Name="rbStaticDNS" VerticalAlignment="Top" />
                        </Grid>
                        <RadioButton Content="{x:Static properties:Resources.Enable}" Foreground="SteelBlue" Height="16" HorizontalAlignment="Left" Margin="122,55,0,0" Name="rbEnabled" VerticalAlignment="Top" Checked="rbEnabled_Checked" />
                        <RadioButton Content="{x:Static properties:Resources.Disable}" Foreground="SteelBlue" Height="16" HorizontalAlignment="Left" IsChecked="True" Margin="182,55,0,0" Name="rbDisabled" VerticalAlignment="Top" Checked="rbDisabled_Checked"/>
                        <Label Content="{x:Static properties:Resources.Adapter}" Height="28" HorizontalAlignment="Left" Margin="57,19,0,0" Name="lblAdapterName" VerticalAlignment="Top" Foreground="SteelBlue" />
                        <Label Height="28" HorizontalAlignment="Left" Margin="114,19,0,0" Name="lblAdapter" VerticalAlignment="Top" Width="172" Foreground="SteelBlue" />
                    </Grid>
                </Grid>
            </TabItem>
            <TabItem Style="{StaticResource AnimatedTabItemHeader}"  Name="tbResources" Header="{x:Static properties:Resources.NetworkResources}" Tag="/Images/System/networkdrive.png">
                <Label Content="...Coming Soon..." Name="label1" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="SteelBlue" FontSize="64" />
            </TabItem>
            
        <TabItem Visibility="Hidden" Width="128" Height="1"/>
            
   </TabControl>

        <Button Style="{StaticResource TaskButton}" Content="{x:Static properties:Resources.Save}" Name="cmdSave" Grid.Column="3" Grid.Row="1" Click="cmdSave_Click" Height="46" VerticalAlignment="Bottom" />
        <Button Style="{StaticResource TaskButton}" Content="{x:Static properties:Resources.Cancel}" Name="cmdClose" Grid.Row="1" Grid.Column="1" Click="cmdClose_Click" />
    </Grid>
</Window>
